package com.kele.controller;

import com.kele.pojo.Account;
import com.kele.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description:
 * @Author: Kele
 * @CreateDate: 2021/7/2 10:14
 * @Version:
 */
@RestController
public class AccountController {

    @Autowired
    private AccountService accountService;

    @RequestMapping("/account/query")
    public List<Account> queryAll(){
        return  accountService.queryAll();
    }
}
